<!DOCTYPE html>
<html>
<head>
    <title>122</title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
    <script src="/javascripts/jquery-1.11.2.min.js"></script>
</head>
<script>
    function ses(){
       var mes=$('#sa').val();
        $.post("/ajaxS",{"sa":mes,"ss":"sda"},function(data,success){
          if(success)
          {

            alert(data);
              var s=JSON.parse(data)
              window.document.location.href = s.me;


          }
            else
          {
              alert("失败了");
          }
        });
    }
</script>
<body>
<input type="text" name="myname" id="sa">
<button type="button" onclick="ses()">提交</button>
</body>